package com.bwie.receman.mapper;

import com.bwie.common.domain.Receive;
import com.bwie.common.domain.User;
import com.bwie.common.domain.request.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface RecemanMapper {
    List<Receive> listreception(@Param("receiveRequest") ReceiveRequest receiveRequest);

    List<Receive> healthRecords(@Param("receiveId") Integer receiveId);

//    List<User> openConsultation(@Param("userId") Integer userId);

    int closeConsultation(@Param("userId") Integer userId);

    int openConsultation(@Param("userId") Integer userId);

    User selectUser(@Param("userId") Integer userId);

    List<Receive> diagnosticManagement(@Param("diagnosticManagementRequest") DiagnosticManagementRequest diagnosticManagementRequest);


    List<Receive> DiagnosticViewingRequest(@Param("receiveDate") String receiveDate);


    List<Receive> DiagnosticViewingRequests(@Param("diagnosticViewingRequest") DiagnosticViewingRequest diagnosticViewingRequest);


    int generateDiagnosticReport(@Param("receiveId") Integer receiveId, @Param("receiveInformation") String receiveInformation);


    void modifyStatus(@Param("receiveId") Integer receiveId);

}
